package com.jt.controller;

import com.jt.pojo.User;
import com.jt.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class UserController {

    @Autowired
    private UserService userService;

    @RequestMapping("/getAll")
    public List<User> getAll(){

        return userService.getAll();
    }
    @RequestMapping("/getId")
    public List<User> getId(){

        return userService.getId();
    }
    @RequestMapping("/getand")
    public List<User> getand(){

        return userService.getand();
    }
    @RequestMapping("/getjing")
    public List<User> getjing(){

        return userService.getjing();
    }
}
